﻿<cfcomponent output="false">

    <cfscript>
    this.Name = "Badge Pic Manipulator";
    this.HeaderName = "B.P.M.";
    this.ApplicationTimeout = CreateTimeSpan( 0, 1, 1, 0 );
    this.SessionManagement = true;
    this.SessionTimeout = CreateTimeSpan(0,0,20,0);    
    this.SetClientCookies = true;
    /*this.ormenabled = true;
    this.ormsettings = {
        logsql = true,
        dbcreate = "none",
        cfclocation = "models"
    };*/
    </cfscript>
    
    <cffunction name="OnApplicationStart" access="public" returntype="boolean"  output="false" >
        <cfscript>        
            APPLICATION.version = "0.1";
        APPLICATION.Name = "Badge Pic Manipulator";
        APPLICATION.HeaderName = "B.P.M.";
        //*** OPTIONAL - If you use Encrypt(), Decrypt(), it makes sense to specify your encryption string here.
        APPLICATION.ENCRYPTION_ALGORITHM = "RC4";
        APPLICATION.ENCRYPTION_ENCODING = "hex";
        APPLICATION.ENCRYPTION_KEY = "VEDKEY";        
        return true;        
        </cfscript>
    </cffunction>


    <cffunction name="OnApplicationEnd" access="public" returntype="void" output="false" >
        <cfargument name="ApplicationScope" type="struct" required="false" default="#StructNew()#" />

        <cfreturn />
    </cffunction>
    
    
    <cffunction name="OnSessionStart" access="public" returntype="void" output="false" >
        <cfscript>
            Var FUNC = StructNew();
            session.rootDir = ListGetAt(CGI.PATH_INFO,1,"/");
        </cfscript>
    </cffunction>


    <cffunction name="OnRequestStart" access="public" returntype="boolean" output="false" >
        <cfargument name="targetPage" type="string" hint="The page requested" required="true"/>
        <!---<cfset ORMReload() />DEV--->
        <cfreturn true>
    </cffunction>


    <cffunction name="OnRequest" access="public" returntype="void" output="true" >
        <cfargument name="TargetPage" type="string" required="true" />
        
        <cfinclude template="#ARGUMENTS.TargetPage#" />

        <cfreturn />
    </cffunction>


    <cffunction name="OnRequestEnd" access="public" returntype="void" output="true" >

        <cfreturn />
    </cffunction>


    <cffunction name="OnSessionEnd" access="public" returntype="void" output="false">
        <cfargument name="SessionScope" type="struct" required="true" />
        <cfargument name="ApplicationScope" type="struct" required="false" default="#StructNew()#" />


        <cfreturn />
    </cffunction>


    <!--- <cffunction name="OnError" access="public" returntype="void" output="true">
        <cfargument name="Exception" type="any" required="true" />
        <cfargument name="EventName" type="string" required="false" default="" />
        <!--- <cfmail to="bfrick@scf.cc" from="EPARERROR@scf.cc" subject="Thumphummer ERROR" type="html">
            <Cfdump var="#Exception#" /><br />
            <cfdump var="#EventName#" />
        </cfmail> --->
       <cfreturn />
    </cffunction> --->


</cfcomponent> 